//
//  DiseaserTopView.m
//  International_Hospital
//
//  Created by 李建强 on 16/7/6.
//  Copyright © 2016年 LiYiLin. All rights reserved.
//

#import "DiseaserTopView.h"

@interface DiseaserTopView()

@property (nonatomic,strong)UIImageView *picImageView;
@property (nonatomic,strong)UILabel *introduceLabel;

@end

@implementation DiseaserTopView


-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        
        self.contentView.backgroundColor = [UIColor colorWithRed:164/255.0 green:235/255.0 blue:222/255.0 alpha:1];
        
        self.picImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picImageView];
        
        
        self.picImageView.image = [UIImage imageNamed:@"Bill"];
        
        self.introduceLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.introduceLabel];
        self.introduceLabel.text = @"病人简介";
    }
    
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    [self.picImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.offset(10);
        make.left.offset(10);
        make.width.equalTo(self.contentView.mas_height).offset(-20);
        make.height.equalTo(self.contentView.mas_height).offset(-20);
    }];
    
    [self.introduceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self.picImageView.mas_top);
        make.left.equalTo(self.picImageView.mas_right).offset(20);
    }];
    
}

@end
